package com.thp.strategy.examplePro;
/**
 * 调用方法
 * @author Tommy
 *
 */
public class Client {
	
	public static void main(String[] args) {
		Player player = new Player();
		player.buy(5000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
        player.buy(12000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
        player.buy(12000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
        player.buy(12000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
	}
}
